function _submit(){
		var $result = $('#events-result');
		jQuery.ajax({
		    type: "POST",
			cache: false,
			data:$('#sumbitForm').serialize(),
			url: i1510.contextPath + "/admin/mflowTpl/save.do",
			dataType:'json',
			success: function(value){
				if(value.result == "success" && value.code == "1"){
					$result.removeClass("alert-danger");
					$result.addClass("alert-info");
					$result.text("提示:提交成功!");
					setTimeout("_hidePop();", 3000);						
				}else{
					$result.removeClass("alert-info");
					$result.addClass("alert-danger");
					$result.text("提示:提交失败!");
				}
			},		       
	        error: function(jqXHR , textStatus , errorThrown){
				$result.removeClass("alert-info");
				$result.addClass("alert-danger");
				$result.text("提示:提交失败!");
	        }
		})
}
function _hidePop(){
	$('#info-pop').popover('hide');
}
$(function () {
	jQuery("#btn_submit").bind("click",_submit);
});